FROM node:21-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --no-audit --prefer-offline --legacy-peer-deps
COPY . .
EXPOSE 3000
RUN npx drizzle-kit push:pg
CMD ["npm", "run", "dev"]
